home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / zyxel-1.5-s / zyxel-1 / zplay / dsp.h < prev    next >
C/C++ Source or Header  |  1994-08-08  |  595b  |  32 lines

  1. /* dsp.h
  2.     Hans E. Kristiansen
  3.  
  4. */
  5.  
  6. #ifndef DSP_H
  7. #define DSP_H
  8.  
  9. #define DEFAULT_DSP_SPEED     9600
  10.  
  11. #define MODE_MONO 0
  12.  
  13. #define AUDIO "/dev/dsp"
  14.  
  15. #include <sys/soundcard.h>
  16. #include <sys/ioctl.h>
  17.  
  18. /* Assist in debug */
  19. extern int verbose;
  20.  
  21. void sync_dsp(int audio);
  22. void set_dsp_speed (int audio, int dsp_speed);
  23. void set_dsp_samplesize(int audio, int sample_size);
  24. void set_dsp_mode(int audio, int dsp_stereo);
  25. void set_dsp_volume(int audio, int left, int right);
  26. void write_dsp_byte(int audio, int sample);
  27. void read_dsp_byte(int audio, long * sample);
  28. void close_dsp(int audio);
  29.  
  30. #endif DSP_H
  31.  
  32.